package com.jhgsys.internal.hazard.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jhgsys.internal.common.entity.BaseEntity;

import com.fasterxml.jackson.annotation.JsonFormat;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;


/**
 *  Entity
 *
 * @author wanghw
 * @date 2024-09-18 14:27:18
 */
@Data
@TableName("hazard_report_area_user")
public class HazardReportAreaUser extends BaseEntity implements Serializable {

    /**
     * 主键
     */
    @TableId(value = "report_area_user_id", type = IdType.ASSIGN_UUID)
    @Size(max = 32, message = "{noMoreThan}")
    private String reportAreaUserId;

    /**
     * 公司Id
     */
    @TableField("tenant_id")
    @NotBlank(message = "{required}")
    @Size(max = 32, message = "{noMoreThan}")
    private String tenantId;

    /**
     * 隐患报告Id
     */
    @TableField("report_id")
    @NotBlank(message = "{required}")
    @Size(max = 32, message = "{noMoreThan}")
    private String reportId;

    /**
     * 班次负责人Id
     */
    @TableField("area_leader_id")
    @NotBlank(message = "{required}")
    @Size(max = 32, message = "{noMoreThan}")
    private String areaLeaderId;

    /**
     * 班次负责人
     */
    @TableField("area_leader_name")
    @NotBlank(message = "{required}")
    @Size(max = 150, message = "{noMoreThan}")
    private String areaLeaderName;

    /**
     * 班次负责人工号
     */
    @TableField("area_leader_no")
    @NotBlank(message = "{required}")
    @Size(max = 64, message = "{noMoreThan}")
    private String areaLeaderNo;

}